﻿<%@ Page Language="C#" MasterPageFile="~/promo/promotion.master" AutoEventWireup="true" CodeFile="travel-email-this.aspx.cs" Inherits="promo_travel_email_this" Async="true" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<!--Start Page Title, Keywords, Description-->
    <!--Check server side (title, keywords, description) creating source code on Page_Load-->
    <asp:Label ID="lblPageTile" Text="Singapore Travel Insurance Email " runat="server" Visible="false"></asp:Label>
    <asp:Label ID="lblKeywords" Text="travel insurance, single trip, annual multi traveling, singapore" runat="server" Visible="false"></asp:Label>
    <asp:Label ID="lblDescription" Text="30% off single trips and 20% off annual travel insurance plans. You can buy now and travel later to take advantage of this promotion."
        runat="server" Visible="false"></asp:Label>
    <!--END Page Title, Keywords, Description-->
    <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>
    <link rel="stylesheet" type="text/css" href="../css/forms_results.css" />
    <link rel="stylesheet" type="text/css" href="../css/button.css" />    
    <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
    <div class="elements_inner_wrapper">
        <div id="contentBody">
            <h3>
                Email </h3>
            <asp:Panel runat="server" ID="pnlEmailThis" DefaultButton="btnEmailThis">
                <table cellpadding="0" cellspacing="0" border="0" class="table_details" style="width: 580px;">
                    <tr>
                        <td width="220">
                        </td>
                        <td class="bg_grey_2" width="360">
                            <div>
                                <div class="curvetopleft left">
                                </div>
                                <div class="curvetopright right">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:Label ID="lblMessage" ForeColor="Red" runat="server"></asp:Label>
                            <asp:ValidationSummary ID="ValidationSummary1" CssClass="errorSummary" HeaderText="Oops... Please complete the form"
                                runat="server" ValidationGroup="emailthis" />
                        </td>
                    </tr>
                   <%-- <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Email To</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:TextBox ID="txtEmailTo" Width="250" MaxLength="80" runat="server" ValidationGroup="emailthis"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvEmailTo" runat="server" ControlToValidate="txtEmailTo"
                                Display="Dynamic" ErrorMessage="" Text="" ValidationGroup="emailthis" CssClass="validationErrorControl">
                            </asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revEmailTo" runat="server" ControlToValidate="txtEmailTo"
                                Display="Dynamic" ErrorMessage="" CssClass="validationErrorControl" Text=""
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="emailthis"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Your Friend's Name</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:TextBox ID="txtFriendName" Width="250" MaxLength="80" runat="server" ValidationGroup="emailthis"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvFriendName" runat="server" ControlToValidate="txtFriendName"
                                Display="Dynamic" ErrorMessage="" Text="" ValidationGroup="emailthis" CssClass="validationErrorControl">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>--%>
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Your E-mail</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:TextBox ID="txtEmail" runat="server" Width="250" MaxLength="100" ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Your Name</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:TextBox ID="txtFullName" Width="250" MaxLength="80" runat="server" ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>                
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Security Check</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:UpdatePanel runat="server" ID="uplCAPCHA">
                                <ContentTemplate>
                                    <asp:Image ID="imgCAPTCHA" runat="server" />
                                    <asp:ImageButton ID="btnNewImage" runat="server" OnClick="btnNewImage_Click" ImageUrl="~/images/icons/refresh.gif"
                                        ToolTip="Reload" AlternateText="Refresh" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <asp:UpdateProgress AssociatedUpdatePanelID="uplCAPCHA" DisplayAfter="100" runat="server"
                                ID="udpCAPTCHA">
                                <ProgressTemplate>
                                    <asp:Image ID="imgLoading" ImageUrl="~/images/loading7.gif" runat="server" />
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </td>
                    </tr>
                    <tr>
                        <td class="txtleft pad7px border1pxdotb_light">
                            <strong>Text in Box</strong>
                        </td>
                        <td class="bg_grey_2 pad7px border2pxdotb">
                            <asp:UpdatePanel ID="uplSecurityCode" runat="server">
                                <ContentTemplate>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtSecurityCode" Width="200px" MaxLength="20" runat="server"></asp:TextBox>
                                    </span><span class="indicator">
                                        <asp:RequiredFieldValidator ID="rfvSecurityCheck" runat="server" ControlToValidate="txtSecurityCode"
                                            Display="Dynamic" ErrorMessage="" CssClass="validationErrorControl" Text=""
                                            ValidationGroup="emailthis"></asp:RequiredFieldValidator>
                                    </span>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="txtleft pad7px">
                        </td>
                        <td class="bg_grey_2 pad7px">
                            <asp:Button runat="server" ID="btnEmailThis" CssClass="button_email-this" OnClick="btnEmailThis_Click"
                                OnClientClick="LoadValidationErrorCss(); if (Page_ClientValidate('emailthis')){ this.className = 'button_processing';}" ValidationGroup="emailthis" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td class="bg_grey_2 w210px">
                            <div>
                                <div class="curvebottomleft left">
                                </div>
                                <div class="curvebottomright right">
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
                <asp:Button runat="server" ID="btnBack" Visible="true" onmousedown="this.className = 'button_back_mousedown';"
                    onmouseout="this.className = 'button_back';" onmouseup="this.className = 'button_back';"
                    CssClass="button_back" CausesValidation="false" OnClientClick="this.removeAttribute('onmouseout');this.removeAttribute('onmouseup'); this.className = 'button_processing';"
                    OnClick="btnBack_Click" />
            </asp:Panel>
            <div style="display:none;">
             <asp:Label ID="lblTripType" runat="server" />                   
                    <asp:Label ID="lblPolicy" runat="server" />                   
                    <asp:Label ID="lblDestination" runat="server" />
                    <asp:Label ID="lblTravelDate" runat="server" />
                    <asp:Label ID="lblTravellers" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>